<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class TestInfo extends TimeModel
{

    protected $name = "test_info";

    protected $deleteTime = false;

    
    public function test()
    {
        return $this->belongsTo('\app\admin\model\Test', 'test_id', 'id');
    }

    
    public function getTestList()
    {
        return \app\admin\model\Test::column('name', 'id');
    }
    public function getSexList()
    {
        return ['1'=>'男','2'=>'女','0'=>'未知',];
    }


}